def changeLink():
  newLink = []
  arr = [1,2,5,7,10,12]
  head = 0
  next = 0
  for i in arr:
      next = next + 1
      newLink[next][0] = i

  newLink[-1][1] = head
  return newLink

# def printLink(newLink):
   